﻿@model CloudTree.Domain.Department

@{
    ViewBag.Title = "Detail";
}

<h2>@Model.Name</h2>

@Html.ActionLink("Create an Employee", "Create", "Employee", new {DepartmentID = @Model.ID}, null)

<Table>
    <tr>
        <th>Name</th>
        <th></th>
    </tr>
    @foreach (var employee in Model.Employees)
    {
        <tr>
            <td>@employee.Name</td>
            <td>
            //Links to edit
            </td>
        </tr> 
    }
</Table>